home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19971216-19980424 / 000037_news@newsmaster….columbia.edu _Fri Jan 2 19:54:13 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  9KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id TAA18384
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Fri, 2 Jan 1998 19:54:13 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id TAA15567
  7.     for kermit.misc@watsun; Fri, 2 Jan 1998 19:54:12 -0500 (EST)
  8. Path: news.columbia.edu!panix!logbridge.uoregon.edu!newsfeed.internetmci.com!206.20.110.210!news.slack.net!anon.lcs.mit.edu!nym.alias.net!mail2news
  9. Date: Fri, 2 Jan 1998 16:50:00 -0700 
  10. From: dallasii@kincyb.com
  11. Message-ID: <TCPSMTP.18.1.2.-16.50.0.2375661496.4897539@kincyb.com>
  12. Subject: K/2 Gotchas
  13. Mail-To-News-Contact: postmaster@nym.alias.net
  14. Organization: mail2news@nym.alias.net
  15. Newsgroups: comp.protocols.kermit.misc
  16. Lines: 224
  17. Xref: news.columbia.edu comp.protocols.kermit.misc:8203
  18.  
  19.  
  20. [This is being emailed to
  21. post-comp.protocols.kermit.misc@newspost.zippo.com,
  22. Rollin White, because I cite him as an information source in it (Thanks R.W..),
  23.  
  24. Glenn Currie because he wanted to keep in touch with what I'm up to.]
  25.  
  26. Now that I've got OS/2 fullscreen prompt access finally
  27. (another story), I'm back to getting my scripts from MS-DOS Kermit
  28. 3.14 running on Kermit/2.  I'm presenting this stuff to document it for
  29. myself, subject my own thinking and expriences to criticism from others
  30. (and maybe learn something in the process), possibly save someone else
  31. some grief, and maybe help sharpen the Kermit documentation.
  32. Some of this might seem trivial, but could save
  33. someone trouble if forwarned.
  34.  
  35. Things encountered:
  36.  
  37. 1) Upgrading from 1.1.1.2 to 1.1.1.5 K/2 was complicated by a habit
  38. (probably bad) of reading text files with an editor.  This has the
  39. bad side effect of the occasional, accidental hitting of a key, or
  40. maybe even adding my own notes.  The changed file would not get
  41. updated with the upgrade patch.  After a little floundering around
  42. everything was straightened out, going back to original files and
  43. repatching.
  44. A good personnal habit when installing
  45. or patching an upgrade, if you insist on using an editor for file
  46. viewing, might be to immediately
  47.  
  48. ATTRIB +r *.TXT *.DOC READ*.* /s
  49.  
  50. then *remembering* to
  51.  
  52. ATTRIB -r ... /s before patching.
  53.  
  54. (Probably better would be use a dedicated file viewing utility :-) )
  55.  
  56. 2) My command files for exchanging email packages keep records
  57. of what happens in a file in RAM disk.  At the end of the command file
  58.  
  59. run TYPE MAILTEMP.TMP >> C:\QWK\RECORD.LOG
  60.  
  61. is run to keep a permenant record of transactions.
  62. This command ran on MS-DOS 3.14 but was causing problems when I
  63. ran the command file on Kermit/2, with 'SYSxxxx   File name too long'
  64. and such coming from the OS.  I finally tracked this down to the need to
  65. change the command to
  66.  
  67. run TYPE MAILTEMP.TMP >> C:\\QWK\\RECORD.LOG
  68.  
  69. On MS-DOS Kermit 3.14, the single back slashes were permitted even though
  70. the documentation clearly states that a double back slash should be used
  71. when a back slash is desired where escaped substitution occurs.
  72.  
  73. 3) When the command file got to the point where the mail package was being
  74. generated, the BBS generates a stream of
  75.  
  76. ^H|^H/^H-^H\^H|^H/^H-^H\^H...........
  77.  
  78. to indicate that things are not dead while the package is prepared.
  79. This seemed to spas out the command file when run in Kermit/2, but
  80. not MS-DOS Kermit.  The problem was eliminated when the input buffer was
  81. increased from the default minimum size (256 bytes) to the maximum size
  82. (65,536 bytes).  I noticed that there was a listing in BUGS.TXT that the
  83. "input buffer was too small".  I don't think I have anything special about
  84. the input buffer for my MK 3.14, so I conclude that either
  85.  
  86. a) the circular buffer works with MK 3.14 and not with K/2
  87.  
  88. or
  89.  
  90. b) the ^H's effectively erase characters already in the input buffer
  91.    in MK 3.14 but not with K/2
  92.  
  93. Maybe it's some setting on my K/2 installation?
  94.  
  95.  
  96. 4)  Another problem was that a script seemed to stop, then fail on
  97. 'reinput' of a string that was obviously being recieved.  The real problem
  98. turned out to be in an earlier 'input' command.  The Gotcha! in this case
  99. was that besides going between versions of Kermit, there were two modems
  100. involved - one external 33.6 USR Sportster and an internal 14.4 Zoom.
  101. A shorter 'input' time setting that was just 'nice' because it ran faster in
  102. MS-DOS Kermit with the 33.6 became essential in the Kermit/2 environment,
  103. probably because everything is running faster and the longer wait threw
  104. timings out of synch.  Look upstream in the script for problems on
  105. 'reinput'.
  106.  
  107. 5)
  108. Another problem was brought on when a dialup
  109. script ran.  Everything went OK until I went to connect mode.
  110. Then, as soon as anything was entered from the keyboard, K/2
  111. left connect mode back to command mode, the session froze up,
  112. the cursor went to lower left-hand corner and the session seemed to become
  113. unkillable.  Any effort to stop the session would produce a message at the
  114. bottom of the screen, something to the effect of
  115. "!!! Recieved Kill Signal!!!", but the session lived on, hogging the
  116. COM port, still locked up until reboot.
  117. This problem seems to have been caused by starting to key in things
  118. too soon after the login script ends - I've found that waiting a few
  119. seconds after it ends before connecting, and a few more
  120. afterward before doing things in the session seems to avoid the problem.
  121. Afterwards, I can type as fast as possible and there doesn't seem to
  122. be any problem.
  123. Perhaps this is caused by some OS/2 keyboard setting I haven't figured
  124. out yet.  The problem went unnoticed with scripts that conducted the entire
  125. session, login to logout.   Some of the docs referenced
  126. mysterious lockup problems usually traced to hardware causes.  Maybe
  127. this experience will help with this.
  128.  
  129.  
  130.  
  131. 6)  A while back, there was some discussion on comp.protocols.kermit.misc
  132. about EXTPROC.  I later had some discussion about this with Rollin White,
  133. president of So. CA OS/2 User's Group, (SCOUG, www.scoug.com)
  134. professional OS/2 programmer, and one of the principal conspirators
  135. of the Warpstock convention held in Oct. in Diamond Bar, CA (near L.A.).
  136. He described this as an "outstanding issue" with OS/2, and provided
  137. a C program that came with MAJORDOMO (as I recall) as one possible solution.
  138. What happens is that after the *.CMD file invokes the EXTPROC specified
  139. interpreter, the system then only searches the current directory
  140. to find the text for the script it was invoked from.
  141.  
  142. Example:
  143.  
  144.  
  145. EXTPROC   D:\K2\K2.EXE
  146. echo
  147. echo this is it, the successful test of EXTPROC
  148. echo
  149. quit
  150. end
  151.  
  152. This will run when the sessions active directory is the same
  153. as the CMD file is located in,
  154. but will fail if executed from any other directory.
  155.  
  156. This will work from other directories as well as D:\K2 :
  157.  
  158.  
  159. EXTPROC   D:\K2\K2.EXE   D:\K2\K2TESTQ.CMD
  160. ;                        AAAAAAAAAAAAAAAAA----This file's name
  161. ; if there were command line parameters, they'd need to
  162. ;  handled here
  163. ;  \&@[3] is typically where passed parameters start
  164. ;   besides the script file specification.
  165. ;
  166. echo
  167. echo this is it, the successful test of EXTPROC
  168. echo
  169. quit
  170. end
  171.  
  172. Try this to get an idea of what is going on :
  173.  
  174. EXTPROC D:\K2\K2.EXE C:\OS2\SYSTEM\KTEST3.CMD
  175. echo hello, world\13
  176. echo \&@[0] \&@[1] \&@[2] \13\10
  177. echo   \&@[3] \&@[4] \&@[5] \&@[6] \&@[7] \&@[8] \&@[9] \&@[10] \13\10
  178. exit
  179.  
  180. (I suggest simply: [PROMPT]ktest3 a b c d e f g h i j k l <return>)
  181. (By the way, double back slashes don't seem to correct anything on the
  182. EXTPROC statement parameters, and will cause a problem here since
  183. substitution of escaped coded isn't being conducted here.)
  184.  
  185. One possible solution/addition might be something along the lines
  186. of PERL's  '-x' parameter:
  187.  
  188.  
  189. @ECHO OFF
  190. ECHO.
  191. ECHO This is from the batch file...........
  192. ECHO.
  193. PERL -x c:\usr\bin\ptestq.bat
  194. REM    Because of the '-x' switch, execution of this file will
  195. REM    not start PERL execution till after the
  196. REM        #![fully qualified file name for PERL]
  197. GOTO REBATCH
  198. #!c:\perl\bperl4x\perl-4.036\perl.exe
  199. print "This is from the PERL script\n" ;
  200. __END__
  201. :REBATCH
  202. ECHO.
  203. ECHO This is from the batch file, AGAIN!!!...........
  204. ECHO.
  205.  
  206. What EXTPROC (versus CALL or <ext. command name>) does is to
  207. prevent any attempt for the further interpetation of the CMD file.
  208. Something of a non-returning execution for a binary executable file.
  209. On any other line then the first, it seems to cause the line
  210. to be interpreted as a completely blank line.
  211.  
  212.  
  213. Any way, everything is running fine now!  K/2
  214. is definitly snappier then the DOS version, (I'm sold on 32 bit software)
  215. and once a few problems
  216. were ironed out the scripts are running fine.
  217. This stuff has probably thrashed out a lot of portability issues
  218. for myself, for the specific scripts involved.
  219. I need to go back and install '3.15 on the DOS side of things,
  220. and get back to trying it out under DOSEmu.
  221.  
  222.  
  223.  
  224.  
  225. Regards,
  226. Dallas E. Legan II
  227. (562) 862 - 4854 ext. '*'
  228. legan@acm.org
  229. legan@forth.org
  230. aw585@lafn.org
  231. dallasii@kincyb.com
  232.  
  233. "But I found that the rulers were ordinary men, too, and frequently
  234. as bewildered as I was."
  235.  
  236.                 from "Solution Unsatisfactory"
  237.                    by Robert A. Heinlein
  238.  
  239. I speak only for myself, and assume full responsibility for my statements.
  240.  
  241.  
  242.